using System;
using CGF;
using UnityEngine;
using UnityEngine.UI;

public class Avatar : MonoBehaviour
{
    public Text vipName;

    private void Awake()
    {
        GetComponent<CButton>().SetClick(() =>
        {
            //修改头像
        });
        EventManager.Add<Event_UserInfoUpdate>(OnUserInfoUpdate);
    }
    
    private void OnUserInfoUpdate(Event_UserInfoUpdate e)
    {
        //刷新头像
    }

    private void OnDestroy()
    {
        EventManager.Remove<Event_UserInfoUpdate>(OnUserInfoUpdate);
    }
}
